<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <%--<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.css">--%>

    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.0.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="${pageContext.request.contextPath}/static/js/bootstrap.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
    <%--<script>
        <c:if test="${empty user}">
        window.location.href = "http://localhost:8080/pages/user/login.jsp";
        </c:if>
        <c:if test="${empty account}">
        window.location.href = "http://localhost:8080/pages/user/openaccount.jsp";
        </c:if>
    </script>--%>
</head>
<script>
    function f(){
        window.location.href = "http://localhost:8080/loanServlet?action=findAllLoan";
    }
</script>
<body>
<div id = "d1">
    <%--<a href="${pageContext.request.contextPath}/productServlet?action=findAllProducts">回退</a>&nbsp;&nbsp;&nbsp;&nbsp;<h1>产品详情</h1>--%>
    <span style="color: gray" onclick="f()"><</span>&nbsp;&nbsp;&nbsp;<span style="display:inline-block;width:200px;font-weight:bold;">
        <h2>产品详情</h2>
    </span>
        <hr>
        <div class="list-group">
            <form action="${pageContext.request.contextPath}/loanServlet" method="post">
                <input type="hidden" name="action" value="loan">
                <h2>${MyLoan.pname}</h2>
                <br>
                <span>利率：${MyLoan.prate}</span>&nbsp;&nbsp;&nbsp;&nbsp;<span>最长期限:${MyLoan.limitDate}天</span><br>
                <h3>产品详情</h3>
                <h4>起贷金额&nbsp;&nbsp;${MyLoan.beginPrice}.00元</h4>
                <h4>单笔最高金额&nbsp;&nbsp;45,000,000,000.00元</h4>
                <br>
                <input type="submit" value="借贷！">
            </form>
        </div>
</div>

<%--<div class="list-group">
    <a href="#" class="list-group-item active">
        <h4 class="list-group-item-heading">List group item heading</h4>
        <p class="list-group-item-text">...</p>
    </a>
</div>--%>
</body>
</html>
